<?php

class Favourite extends Eloquent{
	protected $table = 'favourites';

	public function favouriteType(){
		return $this->belongsTo('FavouriteType', 'favourite_type_id');
	}

	public function favouriteOf(){
		return $this->belongsToMany('UserInformation', 'user_information_has_favourite' , 'favourite_id', 'user_id');
	}
}